﻿using Domain.Entities.Modulers;
using FluentMigrator;
using FrameworkCore.Extensions;

namespace Domain.Migrations.Modulers;

[Migration(202501022014)]
public class ModulerAddModulerLibraryId : ForwardOnlyMigration
{
    public override void Up()
    {
        Alter.Table(MigrationExpressions.GetTableName(typeof(Moduler)))
          .AddColumn(MigrationExpressions.ColumnNameFor<Moduler>(nameof(Moduler.ModulerLibraryId))).AsInt64().Nullable().WithColumnDescription("外键模板库主键");
    }
}